# -*- coding: utf-8 -*-
"""
@Time    : 2024/6/24 13:54 
@Author  : ZhangShenao 
@File    : conftest.py 
@Desc    : 测试环境配置
"""
import pytest

from app.http.app import http_server


@pytest.fixture
def flask_client():
    """获取Flask客户端"""
    http_server.config['TESTING'] = True
    with http_server.test_client() as client:
        yield client
